import org.apache.hadoop.hive.ql.exec.UDF;

import java.util.List;

/**
 * @description: some desc
 * @author: jiashen
 * @date: 2021/10/3 下午7:25
 */
public class DiggInfoToJSON  extends UDF {
    public String evaluate(String input ,String reg) {
        if(input.isEmpty() || "".equals(input)){
            return input;
        }
        if(reg.isEmpty() || "".equals(reg)){
            return reg;
        }

        String[] split = input.split(reg);

        return "";
//        return word.size() > 0 ? String.join("|",word)
//                : "";

    }

}
